<?php echo $this->Session->flash(); ?>

<table border="1" width="100%">
    <thead>
        <tr>
            <th><h1>REQUISITOS GENERALES DEL PROYECTO</h1></th>
        </tr>
    </thead>
    <tbody>

    </tbody>
</table>

<table id="tabla" class="tabla"  width="100%">
        <thead>
            <tr>
              <th>ID </th>
              <th>TEXTO</th>
              <th>Estado</th>
              <th >Opciones</th>
              </tr>
        <tbody>
          <?php foreach ($requisitos as $rec):?>
            <?php
            $re="Sin Registro";
           
                  switch ($rec['ProyectRequirement']['calificacion']) {
                      case 0:
                          $re="Sin Registro";
                          break;
                      case 1:
                          $re="Cumple";
                          break;
                      case 2:
                          $re="No Cumple";
                          break;
                      case 3:
                          $re="Subsanable";
                          break;

                      default:
                          $re="";
                          break;
                  }
                

              ?>
            <tr>
               <td><?php echo $rec['ProyectRequirement']['id'] ?></td>
               <td><?php echo $rec['Requirement']['texto'] ?></td>
               <td><?php  echo $re  ?></td>
               <td><?php echo $ajax->link("Ver concepto",array('controller'=>'ProyectRequirements', "action"=>"edit_reevaluation",$rec['ProyectRequirement']['id'],$claim_id),array('update'=>'content','complete'=>'cargar()','indicator'=>'loading'))?></td>
               

            </tr>
           <?php endforeach;?>
       </tbody>
    </table>

        
